package com.hspedu.homework;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.math.BigDecimal;

/**
 * @author LiuJinTao
 * @className HomeWork02
 * @date 2024/07/05 23:07
 * @description TODO
 */
public class HomeWork02 {
    public static void main(String[] args) throws IOException {
        String path = "e:\\a.txt";
        BufferedReader bufferedReader = new BufferedReader(new FileReader(path));
        String line = "";
        int count = 1;
        while ((line = bufferedReader.readLine()) != null) {
            System.out.println(count++ + line);
        }
        bufferedReader.close();
    }
}
